<?php /* Smarty version 2.6.26, created on 2013-11-10 11:48:14
         compiled from ./front/goods.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../templates/front/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<!-- left 开始 -->
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../templates/front/js/history.js"></script>

<div class="blank">
</div>

<div class="block clearfix">
	<div id="pageLeft" class="fl">
		<h1 class="mod3tit" style="background: url(../templates/front/images/category_tree_bg.gif) repeat-x;"><a href="catalog.php"   style=" color: #fff">所有分类</a></h1>
		<div class="mod1 mod2 blank" id="historybox" style="background:#7D0003; border:none;">
			<span class="lb"></span><span class="rb"></span>
			<div class="cagegoryCon clearfix">
				<?php $_from = $this->_tpl_vars['left_catList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['cat']):
?>
				<dl class="dl">
				<dt><a href="category.php?cat_id=<?php echo $this->_tpl_vars['cat']['cat_id']; ?>
" style="color:#fff;"><?php echo $this->_tpl_vars['cat']['cat_name']; ?>
</a></dt>
					<dd class="clearfix" >
						<?php $_from = $this->_tpl_vars['cat']['son']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['cat_info']):
?>
						<p onMouseOver="this.className='itemsbg'" onMouseOut="this.className=''"><a href="category.php?cat_id=<?php echo $this->_tpl_vars['cat_info']['cat_id']; ?>
" title="笔记本" class="txtdot" style="color:#fff"><?php echo $this->_tpl_vars['cat_info']['cat_name']; ?>
</a></p>
						<?php endforeach; endif; unset($_from); ?>
					</dd>
				</dl>
				<?php endforeach; endif; unset($_from); ?>
			</div>
			<div class="blank">
			</div>
		</div>
			
		<h1 class="mod3tit">销售排行</h1>
		<div class="mod1 mod2 blank" id="topbox">
			<span class="lb"></span><span class="rb"></span>
			<ul id="top10">
				<?php $_from = $this->_tpl_vars['left_hot']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['hot']):
?>
				<li>
					<div class="first">
						<div class="fl">
							<font style="color:#424242; font-weight:bold"><?php echo $this->_tpl_vars['key']+1; ?>
.</font> <a href="goods.php?goods_id=<?php echo $this->_tpl_vars['hot']['goods_id']; ?>
" title="" style="color:#424242"><?php echo $this->_tpl_vars['hot']['goods_name']; ?>
</a>
						</div>
						<div class="fr"><b style="color:#c00"></b>
						</div>
					</div>
					<div class="last">
						<a href="goods.php?id=3"><img src="images/200905/thumb_img/3_thumb_G_1241422082679.jpg" alt="" align="left" /></a>
						<b class="f1">1。</b> <a href="goods.php?id=3" title=""><b><?php echo $this->_tpl_vars['hot']['goods_name']; ?>
</b></a><br />
						本店售价：<b class="f1"><?php echo $this->_tpl_vars['hot']['shop_price']; ?>
</b><br /> 
					</div>
				</li>
				<?php endforeach; endif; unset($_from); ?>
			</ul>
		</div>
		
		<h1 class="mod3tit">浏览历史&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:;" id="clearHistory">清空</a></h1>
		<div class="mod1 mod2 blank" id="history">
			<ul>
			</ul>
		</div>
	</div>

<!-- left 结束 -->

	<div id="pageRight" class="fr">
	
    	<div class="ur_here blank">
			<?php echo $this->_tpl_vars['ur_here']; ?>

		</div>
		
		<div class="clearfix">
			<div class="goodsimgbox fl">
				<div id="focuscont">
					<img src="../<?php echo $this->_tpl_vars['good_info']['goods_thumb']; ?>
" width="298px" height="298px" style="border:1px solid #d2d0d0"/>
				</div>
				<input type="hidden" id="goods_id" value="<?php echo $this->_tpl_vars['goods_id']; ?>
" />
			</div>
			
			<div class="goodstxtbox fr">
				<h4 class="goodName"><?php echo $this->_tpl_vars['good_info']['goods_name']; ?>
</h4>	 		
				<form class="goodsform" action="#" method="post" name="ECS_FORMBUY" id="ECS_FORMBUY" >
					<!----商品详细信息----->
					<p class="goodsInfo">
					<span>商品货号：<?php echo $this->_tpl_vars['good_info']['article_number']; ?>
</span>
					<span>商品库存：<?php echo $this->_tpl_vars['good_info']['goods_number']; ?>
</span>
					<span>商品品牌：<?php echo $this->_tpl_vars['good_info']['mername']; ?>
</span>
					<span>上架时间：<?php echo $this->_tpl_vars['good_info']['add_time']; ?>
</span>
					<span>用户评价：<img src="../templates/front/images/stars5.gif" /></span>
					</p>
					<!--本店售价-->
					<div class="Goodpromotion" style="float:left; width:450px; border-left:none; border-right:none">
						<font class="goodspice" style="color:#CCC">市场价：<span class="market">￥<?php echo $this->_tpl_vars['good_info']['market_price']; ?>
</span></font><br/>
						<font class="goodspice">京&nbsp;东&nbsp;价：<font class="price"  style="font-size:20px;">￥<?php echo $this->_tpl_vars['good_info']['shop_price']; ?>
</font></font><br/>
					</div>

					<div class="Goodpromotion" style="margin-bottom:10px; border:none">      
						<font style="font-size:12px;">购买数量：</font>
						<input name="number" type="text" id="number" value="1" size="4" onBlur="changePrice()" class="InputBorder"/>
						&nbsp;&nbsp;&nbsp;
					</div>
					<a href="flow.php?act=buy&goods_id=<?php echo $this->_tpl_vars['good_info']['goods_id']; ?>
"><img src="../templates/front/images/bnt_buy.gif" /></a> 
				</form>        
			</div>
		</div>
		
		<div class="infotit clearfix" id="com_b">
			<h2><span class="l"></span><span class="r"></span>商品描述</h2>
			<h2 class="h2bg"><span class="l"></span><span class="r"></span>商品属性</h2>
		</div>
		
		<div class="tagcontent" id="com_v" style=" border:1px solid #FFF">
		</div>
		<div id="com_h">
			<blockquote>
				商品描述内容
			</blockquote>
			<blockquote>
				<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
					<tr><th colspan="2" bgcolor="#FFFFFF">属性</th></tr>
					<?php $_from = $this->_tpl_vars['good_attrs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['attrs']):
?>
					<tr>
					<td bgcolor="#FFFFFF" align="left" width="30%" class="f1"><?php echo $this->_tpl_vars['attrs']['attr_name']; ?>
</td>
					<td bgcolor="#FFFFFF" align="left" width="70%"><?php echo $this->_tpl_vars['attrs']['attr_value']; ?>
</td>
					</tr>
					<?php endforeach; endif; unset($_from); ?>
				</table>
			</blockquote> 
		</div>
		<script type="text/javascript">reg("com");</script>
	</div>
	
</div>



<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../templates/front/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>